package com.sp.api.springbootapi.service;

import com.sp.api.springbootapi.model.TGoodsInfo;

/**
 * Created by weidewang on 2018/7/6
 */
public interface TGoodsService {
    void addGoods(TGoodsInfo info);
    void deleteGoods(String code);
    int getGoodsRest(String code);
    boolean updateGoodsAmountWithoutAnyDeal(String code,int buys);
    boolean updateGoodsAmountByVersion(String code,int buys);
    boolean updateGoodsAmountByState(String code,int buys);
}
